﻿using MyCode.Project.Domain.Message.Response.Goods;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCode.Project.Domain.Message.Request.Act
{
    /// <summary>
    /// 
    /// </summary>
    public class SalesSheetAct
    {
        /// <summary>
        /// 购物的会员
        /// </summary>
        public Guid? MemberID { get; set; }

        /// <summary>
        /// 店铺ID
        /// </summary>
        public Guid ShopID { get; set; }

        /// <summary>
        /// 金额合计
        /// </summary>
        public decimal? TotalAmount { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(255, ErrorMessage = "备注输入过长，不能超过255位")]
        public string Note { get; set; }

        /// <summary>
        /// 销售订单商品明细列表
        /// </summary>
        public List<SalesSheetItemAct> Items { get; set; }

    }

    /// <summary>
    /// 全局扫码创建订单
    /// </summary>
    public class ScanCodeOrderAct
    {
        /// <summary>
        /// 二维码内容
        /// </summary>
        public string scene { get; set; }
    }


    public class OnlineSalesSheetAct
    {
        /// <summary>
        /// 购物的会员
        /// </summary>
        public Guid? MemberId { get; set; }

        /// <summary>
        /// 店铺ID
        /// </summary>
        public Guid ShopId { get; set; }

        /// <summary>
        /// 金额合计
        /// </summary>
        public decimal? TotalAmount { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(255, ErrorMessage = "备注输入过长，不能超过255位")]
        public string Note { get; set; }

        /// <summary>
        /// 销售订单商品明细列表
        /// </summary>
        public List<OnlineGoodsItemAct> Items { get; set; }

    }

    public class DouYinOnlinePayAct
    {

        public Guid ShopId { get; set; }
        ///// <summary>
        ///// 团购核销码
        ///// </summary>
        //public string TuanGouCode { get; set; }

        /// <summary>
        /// 购物的会员
        /// </summary>
        public Guid? MemberID { get; set; }

        /// <summary>
        /// 营业员,小程序不用传
        /// </summary>
        public Guid? ClerkID { get; set; }

        /// <summary>
        /// 销售订单商品明细列表
        /// </summary>
        public List<TuanGouGoodsPageListResp> Items { get; set; }
    }

}
